﻿@model HHF.Models.CmsItem
@{
    AjaxOptions options = new AjaxOptions{
        HttpMethod = "Post",
        UpdateTargetId = "divContent"
    };        
}


@using (Ajax.BeginForm(options))
{ 
    <div>
        <input type="submit" value="Save" />
        <input type="submit" value="Cancel" />
    </div>

	@Html.EditorFor(m => m.Text)
    @Html.HiddenFor(m => m.Id)
    @Html.HiddenFor(m => m.Slug)

	<script type="text/javascript">
	    $("#Text").cleditor({ width: 800, height: 600 });
	</script>
}